﻿<%@ Page Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true" CodeFile="MyOrder.aspx.cs" Inherits="Member_MyOrder" Title="无标题页" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
.ord_prts
{
  width:810px;
  padding-top:10px; 
  border-style:solid; 
  border-width:1px; 
  border-color:#CCCC99;	
  vertical-align:top;
}
.ord_tle
{
	background-color: #FFFFD5; 
	height:30px; 
	font-weight:600 ; 
	font-size:10pt; 
	color:#CC6600; 
	border-bottom-style:solid; 
	border-width:1px; 
	border-color:#CCCC99; 
	vertical-align:middle; 
	text-align:left; 
	padding-left:10px;
}

.orderlist
{
  height:400px;           	       
  overflow:visible;
  min-height:400px;
  vertical-align:top;
  text-align:left;
  padding-left:20px; 
 
}

.orderlist #lvOrdered
{
  vertical-align:top;	
}

.itemPlaceholder
{
  vertical-align:top;	
}
</style>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:UpdatePanel runat="server" ID="UpdatePanel1">
<ContentTemplate>
    <table border="0" cellpadding="0"  width="819px" cellspacing="0" style=" font-size:9pt;">
        <tr>
            <td> 
    <table class="ord_prts">
        <tr>
            <td class="ord_tle">
                我的订单列表:</td>
        </tr>
        <tr>
            <td class="ord_tle">
                订单处理状态:<asp:DropDownList ID="ddlOrderStatus" runat="server" Width="161px" 
                    AutoPostBack="True" 
                    onselectedindexchanged="ddlOrderStatus_SelectedIndexChanged">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td class="orderlist">
                <asp:ListView ID="lvOrdered" runat="server" 
                    onitemcommand="lvOrdered_ItemCommand" 
                    onitemdatabound="lvOrdered_ItemDataBound" 
                    onpagepropertieschanging="lvOrdered_PagePropertiesChanging" >
                <LayoutTemplate>
                 <table style="width:700px; vertical-align:top; " cellpadding="2" cellspacing="5" border="0">
                    <thead align="left">
                    <th>订单号</th>
                    <th>合计</th>
                    <th>邮费</th>
                    <th>当前状态</th>
                    <th>订单日期</th>
                    <th>操作</th>
                    </thead>
                    <tbody id="itemPlaceholder" runat="server" >
                    </tbody>
                 </table>
                 <asp:DataPager ID="DataPager1" PagedControlID="lvOrdered" PageSize="15" runat="server"><Fields><asp:NumericPagerField /></Fields></asp:DataPager>
                </LayoutTemplate>
                <ItemTemplate>
                <tr>
                <td>
                <asp:Label ID="btnPrdt" runat="server" Text='<%# Eval("OrderCode") %>'>订单号</asp:Label>
                </td>
                <td>
                <asp:Label ID="lblTotal" Text='<%# Eval("TotalPrice") %>' runat="server"></asp:Label>
                </td>
                <td>
                <asp:Label ID="lblPostPrice" Text='<%# Eval("PostPrice") %>' runat="server"></asp:Label>
                </td>
                <td>
                <asp:Label ID="lblState" Text='<%# Eval("State") %>' runat="server"></asp:Label>
                </td>
                <td>
                <asp:Label ID="lblPrice" Text='<%# Eval("OrderCreateDate") %>' runat="server"></asp:Label>
                </td>
                <td>
                <asp:LinkButton ID="btnCancel" runat="server" CommandName="btnRemove" CommandArgument='<%# Eval("ID") %>' >取消</asp:LinkButton>
                <asp:LinkButton ID="btnDetail" runat="server" CommandName="btnDetail" CommandArgument='<%# Eval("ID") %>' >详细</asp:LinkButton>
                </td>
                </tr>
                </ItemTemplate>
                <EmptyDataTemplate>
                <tr>
                <td align="left"  >您还没有下过任何订单!</td>
                </tr>
                </EmptyDataTemplate>
                </asp:ListView>
            </td>
        </tr>
    </table>
    
            </td>
        </tr>
    </table>
   </ContentTemplate>
</asp:UpdatePanel>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Content_rightarea" Runat="Server">
</asp:Content>

